//
//  WKBlockChainManager.h
//  ourToken
//
//  Created by wakeup on 2018/6/21.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WKBlockChainManager : NSObject

//刷新助记词
+ (NSString *)refreshMnemonic;

/**
 获取私钥和地址
 @param mnemonic 助记词
 @param type 1:比特币测试网络 2:比特币网络 3:以太坊网络
 return array[0]:地址 array[1]:私钥
 */
+ (NSArray *)getPrivateAndAddressFormMnemonic:(NSString *)mnemonic type:(int)type;

/**
 获取地址
 @param Private 私钥
 */
+ (NSString *)addressFormPrivate:(NSString *)Private;

/**
 生成比特币交易
 @param Private 私钥
 @param dict 后台接口返回来的所有数据
 */
+ (NSString *)buildBtcTransactionWithPrivate:(NSString *)Private dict:(NSDictionary *)dict;

/**
 生成以太坊交易
 @param Private 私钥
 @param dict 后台接口返回来的所有数据
 */
+ (NSString *)buildEthTransactionWithPrivate:(NSString *)Private dict:(NSDictionary *)dict;

@end
